package mode.prototype;


/**
 * 原型模式测试
 *
 * @author xjx
 * @date 2023/7/18 17:03
 */
public class MainTest {
    public static void main(String[] args) {
        ConcretePrototype cp = new ConcretePrototype();
        for (int i = 0; i < 10; i++) {
            ConcretePrototype clonecp = (ConcretePrototype) cp.clone();
            clonecp.show();
            System.out.println("hashCode:" + clonecp.hashCode());
        }
    }
}
